var app = angular.module('myApp',['ui.router'])
  .config(['$stateProvider','$urlRouterProvider',function($stateProvider,$urlRouterProvider){
      
      //配置默认路由
      $urlRouterProvider.when('','comic/monday');
      $urlRouterProvider.when('/comic','comic/monday');

<<<<<<< HEAD
=======




//    $urlRouterProvider.when('','comic');


>>>>>>> 88a7ddb73d2618be0a575258a2e916129a8c5874
      $urlRouterProvider.when('/public','public/public1');
			//一级路由


      $stateProvider.state('comic',{
        url: '/comic',
        templateUrl: './comic/comic.html'
      }).state('find',{
        url: '/find',
        templateUrl: './find/find.html'
      }).state('public',{
        url: '/public',
        templateUrl: './public/public.html',
        controller:'publicContro'
      }).state('mine',{
        url: '/mine',
        templateUrl: './mine/mine.html'
      }).state('mine2',{
      	url:'/mine2',
      	templateUrl: './mine/mine2.html'
      })

      



      //漫画页面二级路由
      .state('comic.monday',{
      	url: '/monday',
      	templateUrl: './comic/monday.html'
      }).state('comic.tuesday',{
      	url: '/tuesday',
      	templateUrl: './comic/tuesday.html'
      }).state('comic.wednesday',{
      	url: '/wednesday',
      	templateUrl: './comic/wednesday.html'
      }).state('comic.thursday',{
      	url: '/thursday',
      	templateUrl: './comic/thursday.html'
      }).state('comic.friday',{
      	url: '/friday',
      	templateUrl: './comic/friday.html'
      }).state('comic.saturday',{
      	url: '/saturday',
      	templateUrl: './comic/saturday.html'
      }).state('comic.sunday',{
      	url: '/sunday',
      	templateUrl: './comic/sunday.html'
      })

      //V社区页面二级路由
      .state('public.public1',{
      	url:'/public1',
      	templateUrl:'./public/public1.html',
      	controller:'remenContro'
      })
      .state('public.public2',{
      	url:'/public2',
      	templateUrl:'./public/public2.html',
      	controller:'remenContro'
      })
      
      //我的页面二级路由
      .state('mine.login',{
      	url:'/login',
      	templateUrl:'./mine/login.html',
      	controller:'loginContr'
      })
      .state('mine.setting',{
      	url:'/setting',
      	templateUrl:'./mine/setting.html',
//    	controller:'settingContr'
      })
      .state('mine.myNews',{
      	url:'/myNews',
      	templateUrl:'./mine/myNews.html',
      	controller:'myNewsContr'

<<<<<<< HEAD
=======



>>>>>>> 88a7ddb73d2618be0a575258a2e916129a8c5874
			})
      .state('mine.collect',{
      	url:'/collect',
      	templateUrl:'./mine/collect.html',
      })
      .state('mine.attention',{
      	url:'/attention',
      	templateUrl:'./mine/attention.html',
      	controller:'attentionContr'
      })


      .state('mine.mine2',{
      	url:'/mine2',
      	templateUrl:'./mine/mine2.html'

      })

      
}])